// components/slot-cmpt/slot-cmpt.ts
Component({
  data: {
    num: 77
  },
  observers:{
    num: function(newNum){
      console.log(newNum)
    }
  },
  methods: {
    handleTap: function(){
      this.setData({
        num: this.data.num + 1
      })
    },
    sendData(){
      this.triggerEvent('myevent', this.data.num)
    }
  },

  options: {
    multipleSlots: true // 启用多个插槽
  },
  /**
   * 组件的属性列表
   */
  properties: {

  },
})